﻿@{
    Layout = null;
}

<!DOCTYPE html>
@Html.Partial("LoadPanelPartial")
<html>
<head>
    <title>企业信息管理导入</title>
    @if (false)
 {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
 }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)
    <script>

        $(document).ready(function () {
            var hdjsAlert = $("#hdjsAlert").val();
            if (hdjsAlert != "") {
                alert(hdjsAlert);
                lpModal.Hide();
            }
            if (hdjsAlert == "导入成功") {
                lpModal.Hide();
                parent.codeOK();
            }
        });

        function OK() {


            form1.submit();
            lpModal.Show();

          
        }

      


    </script>
</head>
<body>
    @using (Html.BeginForm("ImportData", "TaxPayerManager", FormMethod.Post, new { id = "form1" }))
    {
              <div class="div">
  <table width="99%" align="center"  cellpadding="3" >
        <tr>
            <td width="80">导入方式:
            </td>
        <td>@Html.DevExpress().CheckBox( settings =>
     {
         settings.Name = "type";
              
         settings.Text="覆盖已存在记录";
         settings.Checked = true;
         settings.Width = System.Web.UI.WebControls.Unit.Pixel(400);
     }).GetHtml()</td>
        </tr>
        <tr>
        <td width="80">请选择文件:
            </td>
            <td class="tbClass" >

                     @Html.DevExpress().UploadControl(
                        settings =>
                        {
                            settings.Name = "upload";
                            settings.BrowseButton.Text = "浏览";
                            settings.Height = System.Web.UI.WebControls.Unit.Percentage(100);
                            settings.Width = System.Web.UI.WebControls.Unit.Pixel(400);
                            settings.ClearFileSelectionImage.ToolTip = "清除选择";
                            settings.ShowProgressPanel = true;
                            settings.ValidationSettings.MaxFileSize = 20971520;
                            settings.ShowUploadButton = false;
                            settings.ControlStyle.VerticalAlign = System.Web.UI.WebControls.VerticalAlign.Middle;
                        }).GetHtml()
        
                </td>
        </tr>
        <tr>
                
                <td colspan="2"><a href="@Url.Content("~/DataTemplate/企业信息管理导入模板.xls")">企业信息管理导入模板文件下载</a></td>
            </tr>
            <tr>
            <td colspan="2">  <p style="color: #FF0000; white-space: nowrap; line-height: normal;" > 备注:默认插入新增记录并覆盖已存在记录</p></td>
            </tr>
    </table>
    </div>
             @Html.Hidden("hdjsAlert", (ViewData["jsAlert"]));
    <script>
        lp.Hide();
    </script>
    }
</body>
</html>
